#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time    : 2021/11/8 12:58 上午
# @Author  : WangZhixing
import os

import pandas as pd

from torch_geometric.transforms import NormalizeFeatures
import torch

from ProcessData import DependenceGraph
from ProcessData.rsf2csv import deprsf2csv, labelrsf2csv
from Visualization.visualizeEmbeding import visualize




def mdg2csv(f1,f2):
    with open(f1, 'r') as fa:
        with open(f2, 'w') as fb:
            data = fa.read().split("\n")[:-1]
            for line in data:
                x = line.split(' ')
                fb.write(x[0]+" "+x[1]+" "+x[2]+'\n')



if __name__ == '__main__':
    mdg2csv("D:\module-reverse-by-gnn\mdgdata\\raw\edge.rsf","D:\module-reverse-by-gnn\mdgdata\\raw\edge.csv")

